package cz.idsv.web.mvc.model.dao;

import java.util.Collection;

import org.springframework.dao.DataAccessException;

import cz.idsv.web.mvc.model.entity.RegistrationEntity;



/**
 * Registration DAO interface.
 * 
 * @author Jan Borzensky 
 */
public interface RegistrationDao {

    /**
     * Find registration.
     */
    public Collection<RegistrationEntity> findRegistration();
    
    /**
     * Saves registration.
     */
    public void save(RegistrationEntity registrationEntity);
    
    
    /**
     * Delete registration.
     */
    public void delete(RegistrationEntity registrationEntity);
    
    /**
     * Find registration by id.
     */
    public RegistrationEntity findRegistrationById(Integer id) throws DataAccessException;
    /**
     * Find registration by name.
     */
    public Collection<RegistrationEntity> findRegistrationByName(String Name) throws DataAccessException;
}

